/**
 *  Desc:   华为项目编号管理
 *  Author: 刘玉峰
 *  Date:   2021-06-15 15:27
 */

 import request from "@/utils/request";
 import { removeEmptyKeys } from "@/utils/utils";

 export async function loadHuaWeiSn(params) {
    params = removeEmptyKeys(params);
    return request.get(`/api/admin/huaweiSnList`, {
      params
    });
  }

  export async function loadHuaWeiSnDetail(id) {
    return request.get(`/api/admin/huaweiSnDetail/${id}`); 
  }

  export async function addHuaWeiSn(params) {
    params = removeEmptyKeys(params);
    return request.post(`/api/admin/addHuaWeiSn`, {
      params
    });
  }

  export async function deleteHuaWeiSn(id) {
    return request.get(`/api/admin/deleteHuaWeiSn/${id}`); 
  }

  export async function getAllSnList(){
    return request.get(`/api/admin/getAllSnList`); 
  }
  